package com.dayuanit.dy15.lesson25.demo2;

/**
 * 继承RuntimeException的异常，我们称之为非检查型异常
 *
 * 处理方式：1.什么都不管 2.通过try...catch...捕获异常
 * 二者选其一
 */
public class MyException extends RuntimeException {

    public MyException() {
    }

    public MyException(String msg) {
        super(msg);
    }
}
